cmake_minimum_required(VERSION 3.24)
project(luaEngine C)

set(CMAKE_C_STANDARD 11)
# 设置变量，指向包含源文件和头文件的目录
set(SOURCE_DIR "./")
set(INCLUDE_DIR "./")

# 收集源目录下的所有.c文件
file(GLOB SOURCES "${SOURCE_DIR}/*.c")

# 收集包含目录下的所有.h文件
file(GLOB HEADERS "${INCLUDE_DIR}/*.h")



# 创建可执行文件
add_executable(${PROJECT_NAME} ${SOURCES})

# 包含头文件目录
target_include_directories(${PROJECT_NAME} PRIVATE ${INCLUDE_DIR})

#
#add_executable(luaEngine lua.c)
